using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._UtilityNetworkTools
{
    /// <summary>
    /// <para>Create Diagram Layer Definition</para>
    /// <para>Create or overwwrite a diagram template layer definitions</para>
    /// <para>创建或覆盖逻辑示意图模板图层定义</para>
    /// </summary>    
    [DisplayName("Create Diagram Layer Definition")]
    public class CreateDiagramLayerDefinition : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public CreateDiagramLayerDefinition()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_utility_network">
        /// <para>Input Network</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        /// <param name="_template_name">
        /// <para>Input Diagram Template</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        public CreateDiagramLayerDefinition(object _in_utility_network, object _template_name)
        {
            this._in_utility_network = _in_utility_network;
            this._template_name = _template_name;
        }
        public override string ToolboxName => "Utility Network Tools";

        public override string ToolName => "Create Diagram Layer Definition";

        public override string CallName => "un.CreateDiagramLayerDefinition";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_utility_network, _template_name, _system_junctions.GetGPValue(), _connectivity_associations.GetGPValue(), _structural_attachments.GetGPValue(), _reduction_edges.GetGPValue(), _point_subLayers, _polygon_subLayers, _out_utility_network, _out_template_name, _junction_object_point_subLayers, _edge_object_polyline_subLayers, _overwrite_all_layers.GetGPValue()];

        /// <summary>
        /// <para>Input Network</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Network")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_utility_network { get; set; }


        /// <summary>
        /// <para>Input Diagram Template</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Diagram Template")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _template_name { get; set; }


        /// <summary>
        /// <para>System Junctions</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("System Junctions")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _system_junctions_value _system_junctions { get; set; } = _system_junctions_value._true;

        public enum _system_junctions_value
        {
            /// <summary>
            /// <para>SHOW</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("SHOW")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>HIDE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("HIDE")]
            [GPEnumValue("false")]
            _false,

        }

        /// <summary>
        /// <para>Connectivity Associations</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Connectivity Associations")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _connectivity_associations_value _connectivity_associations { get; set; } = _connectivity_associations_value._true;

        public enum _connectivity_associations_value
        {
            /// <summary>
            /// <para>SHOW</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("SHOW")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>HIDE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("HIDE")]
            [GPEnumValue("false")]
            _false,

        }

        /// <summary>
        /// <para>Structural Attachments</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Structural Attachments")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _structural_attachments_value _structural_attachments { get; set; } = _structural_attachments_value._true;

        public enum _structural_attachments_value
        {
            /// <summary>
            /// <para>SHOW</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("SHOW")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>HIDE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("HIDE")]
            [GPEnumValue("false")]
            _false,

        }

        /// <summary>
        /// <para>Reduction Edge</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Reduction Edge")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _reduction_edges_value _reduction_edges { get; set; } = _reduction_edges_value._true;

        public enum _reduction_edges_value
        {
            /// <summary>
            /// <para>SHOW</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("SHOW")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>HIDE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("HIDE")]
            [GPEnumValue("false")]
            _false,

        }

        /// <summary>
        /// <para>Points for edges reduced as junctions and collapsed polygons</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Points for edges reduced as junctions and collapsed polygons")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _point_subLayers { get; set; } = null;


        /// <summary>
        /// <para>Polygons for containers</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Polygons for containers")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _polygon_subLayers { get; set; } = null;


        /// <summary>
        /// <para>Output Network</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Network")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_utility_network { get; set; }


        /// <summary>
        /// <para>Output Diagram Template</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Diagram Template")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_template_name { get; set; }


        /// <summary>
        /// <para>Points for junction objects</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Points for junction objects")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _junction_object_point_subLayers { get; set; } = null;


        /// <summary>
        /// <para>Polylines for edge objects</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Polylines for edge objects")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _edge_object_polyline_subLayers { get; set; } = null;


        /// <summary>
        /// <para>Overwrite all layers</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Overwrite all layers")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _overwrite_all_layers_value _overwrite_all_layers { get; set; } = _overwrite_all_layers_value._true;

        public enum _overwrite_all_layers_value
        {
            /// <summary>
            /// <para>OVERWRITE_ALL</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("OVERWRITE_ALL")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>MERGE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("MERGE")]
            [GPEnumValue("false")]
            _false,

        }

        public CreateDiagramLayerDefinition SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}